package com.ttbj.core.util;

import java.io.File;
import java.util.Timer;
import java.util.TimerTask;


public class Delrm {
	
	private String savePath;
	
	Delrm(String savePath){
		
		this.savePath=savePath;
	}
	
	public  void timer() {
	    Timer timer = new Timer();
	    timer.schedule(new TimerTask() {
	      public void run() {
	        delete(savePath);
	      }
	    }, DateUtil.TIME_DAY);// 设定指定的时间time,此处为2000毫秒
	  }
	
		private  void  delete(String savePath){
		if(savePath!=null){
	      new File(savePath).delete();
		}
	}

}
